function GetPath(path) {
  path = path || ''
  const p = window.location.href
  let str = p
  if (p) {
    str = p.substring(0, p.lastIndexOf('/') + 1)
    console.log('str=', str)
  } else {
    str = './'
  }
  const newStr = str + path
  console.log('newStr=', newStr)
  return newStr
}

function addcss(cssLink) {
  const doc = document;
  const style = doc.createElement('link');
  style.type = 'text/css';
  style.rel = 'stylesheet';
  style.href = cssLink;
  const head = doc.getElementsByTagName('head')[0];
  head.appendChild(style)

  console.log('cssLink=', cssLink)
}

function inserCss(fileName) {
  const link = GetPath(fileName)
  setTimeout(() => {
    addcss(link)
  }, 10);
}